package com.cyy.dyeing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyy.dyeing.model.Info;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * @Author: cyy
 * @Date: 2024/7/25
 */
@Mapper
public interface InfoMapper extends BaseMapper<Info> {

    @Update("update t_info set info_status=#{targetStatus} where info_id=#{infoId} and info_status=@{infoStatus}")
    int updateStatus(String infoId, String infoStatus, String targetStatus);
}
